package cn.tedu.elo.petForum.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class PostVo {
    @ApiModelProperty(value = "帖子唯一标识符，自增主键")
    private Long id;

    @ApiModelProperty(value = "帖子标题，不允许为空")
    private String title;

    @ApiModelProperty(value = "帖子内容，不允许为空")
    private String content;

    @ApiModelProperty(value = "帖子发布时间，默认为当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "帖子更新时间，默认为当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "帖子状态，1 表示正常，0 表示禁用，默认为正常")
    private Integer status;

    @ApiModelProperty(value = "帖子发布者，不允许为空")
    private String publisher;
}
